package com.xxl.rpc.admin.demo;

import java.util.Objects;

public class Emp {

 private int age;

private Boolean adultFlag;


    public Boolean getAdultFlag() {
        return adultFlag;
    }

    public void setAdultFlag(Boolean adultFlag) {
        this.adultFlag = adultFlag;
    }

    public Emp(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Emp emp = (Emp) o;
        return age == emp.age;
    }

    @Override
    public int hashCode() {
        return Objects.hash(age);
    }
}
